package com.wing.wcabinet.model.request;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.wing.wcabinet.model.entity.WcabUseInventoryInoutDetail;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;

/**
 * 售刀柜领取/暂存柜上/暂存/维修/回收明细Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class WcabUseInventoryInoutDetailForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 售刀柜领取/暂存柜上/暂存/维修/回收任务id
     */
    private Long inoutId;

    /**
     * 柜子id
     */
    private Long cabId;

    /**
     * sku id
     */
    private Long skuId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 重量
     */
    private BigDecimal weight;

    /**
     * 货道/库位id
     */
    private Long spaceId;

    /**
     * 操作类型
     */
    private WcabUseInventoryInoutDetail.Type type;

    /**
     * sku code
     */
    private String skuCode;

    /**
     * 柜子编码
     */
    private String cabCode;

    /**
     * 货道/货位编码
     */
    private String spaceCode;

    /**
     * 当前库存
     */
    private Integer quantityCurrent;

    /**
     * 变动后库存
     */
    private Integer quantityAfter;

    /**
     * 业务类型
     */
    private WcabUseInventoryInoutDetail.BusinessType businessType;

    /**
     * enterpriseId
     */
    private Long enterpriseId;

    /**
     * enterpriseCode
     */
    private String enterpriseCode;


    public interface Add{}

    public interface Update{}

    private BigDecimal weightCurrent;

    private BigDecimal weightAfter;

    private BigDecimal weightChecked;

    private Integer quantityChecked;
}
